import {createApp} from 'vue'
import ElementPlus from 'element-plus'
import { createPinia } from 'pinia'
import router from '../router/router.ts'
import Particles from '@tsparticles/vue3'   //特效：官网https://www.npmjs.com/package/particles.vue3
import { loadSlim } from '@tsparticles/slim'
import App from './App.vue'

import 'element-plus/dist/index.css'
import '../assets/icon/iconfont.css'
import '../assets/css/bootstrap.min.css'
import '../assets/css/main.css'

const pinia = createPinia()

const app = createApp(App)
app.use(ElementPlus)
app.use(pinia)
app.use(router)
app.use(Particles, {
    init: async (engine) => {
        await loadSlim(engine) // 轻量版引擎
    }
})
app.mount('#index')

